package org.jeecg.modules.basic.plan.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.basic.goods.entity.LwgyMaterialGoods;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanGoods;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplication;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplications;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 物料管理退库表
 * @Author: jeecg-boot
 * @Date:   2021-04-06
 * @Version: V1.0
 */
public interface ILwgyMaterialPlanapplicationService extends IService<LwgyMaterialPlanapplication> {

    /**
     * 添加一对多
     *
     */
    public void saveMain(LwgyMaterialPlanapplication lwgyMaterialPlanapplication,List<LwgyMaterialPlanGoods> lwgyMaterialPlanGoodsList) ;

    /**
     * 修改一对多
     *
     */
    public void updateMain(LwgyMaterialPlanapplication lwgyMaterialPlanapplication,List<LwgyMaterialPlanGoods>  lwgyMaterialPlanGoodsList);

    /**
     * 删除一对多
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain (Collection<? extends Serializable> idList);


    IPage<LwgyMaterialPlanapplication> queryPageCustomer(Page<LwgyMaterialPlanapplication> page, QueryWrapper<LwgyMaterialPlanapplication> queryWrapper,String itemName,String category);

    List<LwgyMaterialPlanapplications> queryPageExportListCustom(LwgyMaterialPlanapplications lwgyMaterialPlanapplications);


}
